package com.smfx.yxt.utils;

import java.util.Comparator;

public class WeekComparator implements Comparator<Object>{

	public int compare(Object o1,Object o2)
    {
        String i1= getStrInt(String.valueOf(o1));
        String i2=getStrInt(String.valueOf(o2));
        return i1.compareTo(i2);
    }
    
    private static String getStrInt(String k) {
		if(k.equals("周一")) return "a";
		if(k.equals("周二")) return "b";
		if(k.equals("周三")) return "c";
		if(k.equals("周四")) return "d";
		if(k.equals("周五")) return "e";
		return "0";
	}

}
